package com.example.clsj.dto;

import lombok.Data;

import javax.xml.bind.annotation.*;

/**
 * @author cy
 * @date 2024/9/5
 */
@XmlRootElement(name = "root")
@Data
@XmlAccessorType(XmlAccessType.FIELD)
public class XmlEntity {

//    @XmlElement(name = "Request")
//    private String request;

    @XmlElement(name = "Request")
    private Request requestObj;
}

@Data
@XmlAccessorType(XmlAccessType.FIELD)
class Request {
    @XmlAttribute(name = "version")
    private String version;
}
